package com.eastcompeace.es.log4j_es;

import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;

/**
 * Hello world!
 *
 */
public class App {

	public static void main(String[] args) throws Exception {
		Logger logger = LogManager.getLogger("test");
		for (int i = 0; i < 10; i++) {
			Thread.sleep(1000);
			logger.info("Hello World");
			System.out.println("Hello World!");
		}
		try {
			Test test = new Test();
			test.test();
		} catch (Exception e) {
			logger.error(e, e);
		}
	}
}
